//
//  ViewController.m
//  TCCalendarSelector
//
//  Created by 叮叮 on 2021/5/8.
//

#import "ViewController.h"
#import "TCCalendar.h"

@interface ViewController ()<TCCalendarDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    self.view.backgroundColor = UIColor.systemGroupedBackgroundColor;
    
    TCCalendar.selectedColor = [UIColor orangeColor];
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    TCCalendar *calendar = [[TCCalendar alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width - 80, self.view.bounds.size.height - 140)];
    calendar.center = self.view.center;
    calendar.delegate = self;
    [self.view addSubview:calendar];
    [calendar show];
}

- (void)selectedDurationDateWithStartDate:(TCCalendarDateModel *)start endDate:(TCCalendarDateModel *)end {
    NSLog(@"");
}


@end
